﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Batch_Disc_Backup
{
    /// <summary>
    /// Stores the information of the files to copy, the completion status,
    /// and an exception if there was a problem with the copy.
    /// </summary>
    [DataContract]
    public class FileToCopy
    {
        [DataMember]
        public string FormFile { get; set; }
        [DataMember]
        public string ToFile { get; set; }
        [DataMember]
        public bool CopyComplete { get; set; }
        [DataMember]
        public string ExceptionMessage { get; set; }

        public FileToCopy()
        {
        }

        public FileToCopy(string fromFile, string toFile)
        {
            FormFile = fromFile;
            ToFile = toFile;
            CopyComplete = false;
            ExceptionMessage = null;
        }
    }
}
